<template>
    <div>
        这是home页面
        <button @click="getInfo">请求详情数据</button>
    </div>
</template>
<script>
import { getData, getDetail } from '../api'
export default {
    created() {
        // console.log()
        getData().then(data => {
            console.log(data)
        })
    },

    methods: {
        getInfo() {
            getDetail().then(data => {
                console.log(data)
            })
        }
    }
}
</script>